using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Thaire.Investment.Domains.Transaction
{
   
    public class FixincomesecuritiesAmortizeHeader 
    {
        #region Properties
              // FIXINCOMESECURITIES_AMORTIZE_HEADER_ID
        public virtual int FixincomesecuritiesAmortizeHeaderID { set; get; }
      // FIXINCOMESECURITIES_HEADER_ID
        public virtual int? FixincomesecuritiesHeaderID { set; get; }
      // SYMBOL
        public virtual String Symbol { set; get; }
      // TRADE_DATE
        public virtual DateTime? TradeDate { set; get; }
      // MATURITY_DATE
        public virtual DateTime? MaturityDate { set; get; }
      // BOOK_VALUE
        public virtual decimal? BookValue { set; get; }
      // PAR_VALUE
        public virtual decimal? ParValue { set; get; }
      // YIELD
        public virtual decimal? Yield { set; get; }
      // IRR_PER_DAY
        public virtual decimal? IrrPerDay { set; get; }
      // COUPON
        public virtual decimal? Coupon { set; get; }
      // DISCOUNT_PREMIUM
        public virtual decimal? DiscountPremium { set; get; }
      // AI
        public virtual decimal? AI { set; get; }
      // GROSS_PRICE
        public virtual decimal? GrossPrice { set; get; }
        public virtual int FixincomesecuritiesPurchaseID { get; set; }

        public virtual decimal? CleanPrice { set; get; }
        #endregion

        

        public override bool Equals(object obj)
        {
            if(obj == null)
                return false;
            if(obj.GetType() != typeof(FixincomesecuritiesAmortizeHeader) && !(obj is FixincomesecuritiesAmortizeHeader))
                return false;
            return ToString().Equals(obj.ToString());
        }

        public override int GetHashCode()
        {
            return ToString().GetHashCode();
        }

        public override string ToString()
        {
            return string.Format("{0}",FixincomesecuritiesAmortizeHeaderID);
        }


       
    }


}